<template>
  <div id="app">
      <!-- 占位符 -->
      <router-view></router-view>
      <!-- 引入公共的底部组件 -->
      <footer-guide v-if="$route.meta.showFooter"></footer-guide>
  </div>
</template>

<script>
//1.引入组件
//2.挂载组件
//3.使用组件
import FooterGuide from './components/FooterGuide/FooterGuide.vue'
import {reqCategorys} from './api/index'
import {mapActions} from 'vuex'
export default {
  name: 'App',
  methods:{
    ...mapActions(['getAddress','getUserInfo']),//相当于this.$store.dispatch('getAddress)
  },
  components:{
    FooterGuide,
  },
   mounted(){
   this.getAddress();
   this.getUserInfo();
  }
}
</script>

<style lang="stylus" rel="stylesheet/stylus">
  #app
    width 100%
    height 100%
    background #f5f5f5
</style>
